/**
 * Demonstrates a range of Button options the framework offers out of the box
 */
Ext.define('cloud.view.user.UserDetail', {
    extend: 'Ext.form.Panel',
    xtype: 'userDetail',

    requires: ['Ext.form.Panel', 'Ext.form.FieldSet', 'Ext.field.Select', 'Ext.field.Hidden'],
    config: {
        title: '用户信息详情',
        items: [
            {
                xtype: 'toolbar',
                docked: 'bottom',
                layout: {
                    type: 'hbox',
                    pack: 'end'
                },
                items: [
                    {
                        id: 'user_edit',
                        iconMask: true,
                        cls:'x-button2',
                        scope: this,
                        text: '修改提交',
                        style: 'float:right'
                    }
                ]
            },
            {
                xtype: 'fieldset',
                title: '用户信息详情',
                items: [
                    {
                        xtype: 'textfield',
                        label:'用户ID',
                        name: 'cuid',
                        id: 'user_cuid',
                        hidden:true
                    },
                    {
                        xtype: 'textfield',
                        label:'应用ID',
                        name: 'caid',
                        id: 'user_caid',
                        hidden:true
                    },
                    {
                        xtype:'textfield',
                        label:'用户名',
                        name:'name',
                        id:'user_name',
                        readOnly:true
                    },
                    {
                        xtype:'textfield',
                        label:'手机号',
                        name:'mobile_num',
                        id:'user_mobile_num',
                        readOnly:true
                    },
                    {
                        xtype:'togglefield',
                        label:'用户状态',
                        name:'status',
                        id:'user_status'
//                        listeners:{
//                            change:function(){
//
//                            }
//                        }
                    }
                ]
            }
        ]
    }
});
